/*
 * @Author:
 * @Date: 2023-04-06 15:23:15
 * @LastEditors:
 * @LastEditTime: 2023-04-07 14:25:38
 * @FilePath: \immoka-admin\src\api\member\frozenIncomeList.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from "@/utils/request";

// 获取收益冻结用户列表
export function listData(query) {
  return request({
    url: `/user-manager/user-freeze`,
    method: "get",
    params: query
  });
}

export function listTypeData(query) {
  return request({
    url: `/gift/list`,
    method: "post",
    data: query
  });
}

export function deleteData(ids) {
  return request({
    url: `/user-manager/user-freeze/del`,
    method: "post",
    data: {ids}
  });
}

export function postFreeze(id, form) {
  return request({
    url: `/user-manager/backpack-gift/freeze/${id}`,
    method: "post",
    data: form
  });
}

export function postFreezeAll(ids) {
  return request({
    url: `/user-manager/user-freeze/clear`,
    method: "post",
    data: { ids }
  });
}

export function getExport(params) {
  return request({
    url: "/user-manager/user-freeze/export",
    method: "get",
    params
  });
}

// 新增冻结用户
export function addUserFreeze(params) {
  return request({
    url: "/user-manager/user-freeze/add",
    method: "post",
    data: params
  });
}
